package com.shujia.wyh.day08.homework.test2;

public class Cola extends Drink {

    //种类
    private String type;

    public Cola() {

    }

    public Cola(int volume, String name, String type) {
        super(volume, name);
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    @Override
    public void show() {
        System.out.println("名称："+getName());
        System.out.println("种类："+type);
        System.out.println("容量："+getVolume());
    }
}
